package com.ayi.utils;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @author Ayingzz
 * @create 2021/11/29 22:59
 */
public class CloseConn {

    /**
     * 关闭连接
     * @param conn
     */
    public void closeConnection(Connection conn) {
        try {
            conn.close();
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }
    }

}
